﻿using MediatR;
using RBAC.LuFang.API.Application.Command.deepprocessingCommand;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.API.Application.CommandHandlers.deepprocessingCommandHandler
{
    //删除相关材料
    public class DelXiangpicCommandHandler:IRequestHandler<DelXiangpicCommand,int>
    {
        private readonly IdeepprocessingService _depService;

        public DelXiangpicCommandHandler(IdeepprocessingService depService)
        {
            _depService = depService;
        }

        public async Task<int> Handle(DelXiangpicCommand request, CancellationToken cancellationToken)
        {
            return await _depService.DelXiangpic(request.id);
        }
    }
}
